package com.overseasShopping.Base.DAOImpl;

import java.util.List;

import com.overseasShopping.Base.DAO.ComplaintDAO;
import com.overseasShopping.pojo.Complaint;



public class ComplaintDAOImpl extends BaseDAOImpl<Complaint> implements ComplaintDAO{
	@SuppressWarnings("unchecked")
	public List<Complaint> getmycomplaintlistByuserid(String userId) {
		String hql="from Complaint where userId=? and Cstate != 'del'";
		Object[] params={userId};
		List<Complaint> complaintList=getHibernateTemplate().find(hql,params);
		return complaintList!=null&&complaintList.size()>0 ? complaintList:null;
	}
}
